﻿using System;
using System.Collections.Generic;

namespace Azad.BCL.CustomGrid
{
    public class FilterCommandEventArgs : EventArgs
    {
        private string filterExpression;

        public FilterCommandEventArgs(string filterExpression)
        {
            this.filterExpression = filterExpression;
        }

        public string FilterExpression
        {
            get
            {
                return this.filterExpression;
            }
            set
            {
                this.filterExpression = value;
            }
        }
        List<FilterProperty> lstFilterProperty;
        public List<FilterProperty> _FilterProperty
        {
            get { return lstFilterProperty; }
            set
            {
                if (lstFilterProperty == null)
                    lstFilterProperty = new List<FilterProperty>();

                lstFilterProperty = value;
            }
        }

    }

    public class FilterProperty
    {
        public string KeyName { get; set; }
        public string Filter { get; set; }
        public string Value { get; set; }
    }
}
